#!/usr/bin/python
import sqlite3,os

class sql_some:
    def __init__(self,path):
        self.cx =   sqlite3.connect(path)
        self.cu = self.cx.cursor()
        
    def insert_some(self,tablename,values_tul):
        self.cu.execute("""insert into """+ tablename + "values" + values_tul)
        self.cu.commit()
        
    def log_all(self,tablename):
        self.cu.execute("""select * from """ + tablename)
        print self.cu.fetchall()

    def close(self):
        self.cu.close()
        self.cx.close()
        
    def delet(self,tablename,valuse_id):
        self.cu.execute("delete from " + tablename + "where id = " values_id)
        self.cu.commit()
